<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>create_bg_esti [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_tools.html">工具</a> / <a href="toc_tools_backgroundestimator.html">Background Estimator</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">create_bg_esti</span><span data-if="c" style="display:none;">T_create_bg_esti</span><span data-if="cpp" style="display:none;">CreateBgEsti</span><span data-if="dotnet" style="display:none;">CreateBgEsti</span><span data-if="python" style="display:none;">create_bg_esti</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">create_bg_esti</span><span data-if="c" style="display:none;">T_create_bg_esti</span><span data-if="cpp" style="display:none;">CreateBgEsti</span><span data-if="dotnet" style="display:none;">CreateBgEsti</span><span data-if="python" style="display:none;">create_bg_esti</span></code> — Generate and initialize a data set for the background estimation.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>create_bg_esti</b>(<a href="#InitializeImage"><i>InitializeImage</i></a> :  : <a href="#Syspar1"><i>Syspar1</i></a>, <a href="#Syspar2"><i>Syspar2</i></a>, <a href="#GainMode"><i>GainMode</i></a>, <a href="#Gain1"><i>Gain1</i></a>, <a href="#Gain2"><i>Gain2</i></a>, <a href="#AdaptMode"><i>AdaptMode</i></a>, <a href="#MinDiff"><i>MinDiff</i></a>, <a href="#StatNum"><i>StatNum</i></a>, <a href="#ConfidenceC"><i>ConfidenceC</i></a>, <a href="#TimeC"><i>TimeC</i></a> : <a href="#BgEstiHandle"><i>BgEstiHandle</i></a>)</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>T_create_bg_esti</b>(const Hobject <a href="#InitializeImage"><i>InitializeImage</i></a>, const Htuple <a href="#Syspar1"><i>Syspar1</i></a>, const Htuple <a href="#Syspar2"><i>Syspar2</i></a>, const Htuple <a href="#GainMode"><i>GainMode</i></a>, const Htuple <a href="#Gain1"><i>Gain1</i></a>, const Htuple <a href="#Gain2"><i>Gain2</i></a>, const Htuple <a href="#AdaptMode"><i>AdaptMode</i></a>, const Htuple <a href="#MinDiff"><i>MinDiff</i></a>, const Htuple <a href="#StatNum"><i>StatNum</i></a>, const Htuple <a href="#ConfidenceC"><i>ConfidenceC</i></a>, const Htuple <a href="#TimeC"><i>TimeC</i></a>, Htuple* <a href="#BgEstiHandle"><i>BgEstiHandle</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>CreateBgEsti</b>(const HObject&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, const HTuple&amp; <a href="#Syspar1"><i>Syspar1</i></a>, const HTuple&amp; <a href="#Syspar2"><i>Syspar2</i></a>, const HTuple&amp; <a href="#GainMode"><i>GainMode</i></a>, const HTuple&amp; <a href="#Gain1"><i>Gain1</i></a>, const HTuple&amp; <a href="#Gain2"><i>Gain2</i></a>, const HTuple&amp; <a href="#AdaptMode"><i>AdaptMode</i></a>, const HTuple&amp; <a href="#MinDiff"><i>MinDiff</i></a>, const HTuple&amp; <a href="#StatNum"><i>StatNum</i></a>, const HTuple&amp; <a href="#ConfidenceC"><i>ConfidenceC</i></a>, const HTuple&amp; <a href="#TimeC"><i>TimeC</i></a>, HTuple* <a href="#BgEstiHandle"><i>BgEstiHandle</i></a>)</code></p>
<p>
<code><a href="HBgEsti.html">HBgEsti</a> <a href="HImage.html">HImage</a>::<b>CreateBgEsti</b>(double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const HString&amp; <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const HString&amp; <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>) const</code></p>
<p>
<code><a href="HBgEsti.html">HBgEsti</a> <a href="HImage.html">HImage</a>::<b>CreateBgEsti</b>(double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const char* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const char* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>) const</code></p>
<p>
<code><a href="HBgEsti.html">HBgEsti</a> <a href="HImage.html">HImage</a>::<b>CreateBgEsti</b>(double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const wchar_t* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const wchar_t* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>) const  <span class="signnote">
            (
            Windows only)
          </span></code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>HBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const HString&amp; <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const HString&amp; <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)</code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>HBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const char* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const char* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)</code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>HBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const wchar_t* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const wchar_t* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)  <span class="signnote">
            (
            Windows only)
          </span></code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>CreateBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const HString&amp; <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const HString&amp; <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)</code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>CreateBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const char* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const char* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)</code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>::<b>CreateBgEsti</b>(const HImage&amp; <a href="#InitializeImage"><i>InitializeImage</i></a>, double <a href="#Syspar1"><i>Syspar1</i></a>, double <a href="#Syspar2"><i>Syspar2</i></a>, const wchar_t* <a href="#GainMode"><i>GainMode</i></a>, double <a href="#Gain1"><i>Gain1</i></a>, double <a href="#Gain2"><i>Gain2</i></a>, const wchar_t* <a href="#AdaptMode"><i>AdaptMode</i></a>, double <a href="#MinDiff"><i>MinDiff</i></a>, Hlong <a href="#StatNum"><i>StatNum</i></a>, double <a href="#ConfidenceC"><i>ConfidenceC</i></a>, double <a href="#TimeC"><i>TimeC</i></a>)  <span class="signnote">
            (
            Windows only)
          </span></code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>CreateBgEsti</b>(<a href="HObject.html">HObject</a> <a href="#InitializeImage"><i>initializeImage</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Syspar1"><i>syspar1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Syspar2"><i>syspar2</i></a>, <a href="HTuple.html">HTuple</a> <a href="#GainMode"><i>gainMode</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Gain1"><i>gain1</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Gain2"><i>gain2</i></a>, <a href="HTuple.html">HTuple</a> <a href="#AdaptMode"><i>adaptMode</i></a>, <a href="HTuple.html">HTuple</a> <a href="#MinDiff"><i>minDiff</i></a>, <a href="HTuple.html">HTuple</a> <a href="#StatNum"><i>statNum</i></a>, <a href="HTuple.html">HTuple</a> <a href="#ConfidenceC"><i>confidenceC</i></a>, <a href="HTuple.html">HTuple</a> <a href="#TimeC"><i>timeC</i></a>, out <a href="HTuple.html">HTuple</a> <a href="#BgEstiHandle"><i>bgEstiHandle</i></a>)</code></p>
<p>
<code><a href="HBgEsti.html">HBgEsti</a> <a href="HImage.html">HImage</a>.<b>CreateBgEsti</b>(double <a href="#Syspar1"><i>syspar1</i></a>, double <a href="#Syspar2"><i>syspar2</i></a>, string <a href="#GainMode"><i>gainMode</i></a>, double <a href="#Gain1"><i>gain1</i></a>, double <a href="#Gain2"><i>gain2</i></a>, string <a href="#AdaptMode"><i>adaptMode</i></a>, double <a href="#MinDiff"><i>minDiff</i></a>, int <a href="#StatNum"><i>statNum</i></a>, double <a href="#ConfidenceC"><i>confidenceC</i></a>, double <a href="#TimeC"><i>timeC</i></a>)</code></p>
<p>
<code>public <a href="HBgEsti.html">HBgEsti</a>(<a href="HImage.html">HImage</a> <a href="#InitializeImage"><i>initializeImage</i></a>, double <a href="#Syspar1"><i>syspar1</i></a>, double <a href="#Syspar2"><i>syspar2</i></a>, string <a href="#GainMode"><i>gainMode</i></a>, double <a href="#Gain1"><i>gain1</i></a>, double <a href="#Gain2"><i>gain2</i></a>, string <a href="#AdaptMode"><i>adaptMode</i></a>, double <a href="#MinDiff"><i>minDiff</i></a>, int <a href="#StatNum"><i>statNum</i></a>, double <a href="#ConfidenceC"><i>confidenceC</i></a>, double <a href="#TimeC"><i>timeC</i></a>)</code></p>
<p>
<code>void <a href="HBgEsti.html">HBgEsti</a>.<b>CreateBgEsti</b>(<a href="HImage.html">HImage</a> <a href="#InitializeImage"><i>initializeImage</i></a>, double <a href="#Syspar1"><i>syspar1</i></a>, double <a href="#Syspar2"><i>syspar2</i></a>, string <a href="#GainMode"><i>gainMode</i></a>, double <a href="#Gain1"><i>gain1</i></a>, double <a href="#Gain2"><i>gain2</i></a>, string <a href="#AdaptMode"><i>adaptMode</i></a>, double <a href="#MinDiff"><i>minDiff</i></a>, int <a href="#StatNum"><i>statNum</i></a>, double <a href="#ConfidenceC"><i>confidenceC</i></a>, double <a href="#TimeC"><i>timeC</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>create_bg_esti</b>(<a href="#InitializeImage"><i>initialize_image</i></a>: HObject, <a href="#Syspar1"><i>syspar_1</i></a>: float, <a href="#Syspar2"><i>syspar_2</i></a>: float, <a href="#GainMode"><i>gain_mode</i></a>: str, <a href="#Gain1"><i>gain_1</i></a>: float, <a href="#Gain2"><i>gain_2</i></a>: float, <a href="#AdaptMode"><i>adapt_mode</i></a>: str, <a href="#MinDiff"><i>min_diff</i></a>: float, <a href="#StatNum"><i>stat_num</i></a>: int, <a href="#ConfidenceC"><i>confidence_c</i></a>: float, <a href="#TimeC"><i>time_c</i></a>: float) -&gt; HHandle</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p><code><span data-if="hdevelop" style="display:inline">create_bg_esti</span><span data-if="c" style="display:none">create_bg_esti</span><span data-if="cpp" style="display:none">CreateBgEsti</span><span data-if="com" style="display:none">CreateBgEsti</span><span data-if="dotnet" style="display:none">CreateBgEsti</span><span data-if="python" style="display:none">create_bg_esti</span></code> creates a new data set for the background
estimation and initializes it with the appropriate parameters. The
estimated background image is part of this data set. The newly
created set automatically becomes the current set.
</p>
<p><a href="#InitializeImage"><i><code><span data-if="hdevelop" style="display:inline">InitializeImage</span><span data-if="c" style="display:none">InitializeImage</span><span data-if="cpp" style="display:none">InitializeImage</span><span data-if="com" style="display:none">InitializeImage</span><span data-if="dotnet" style="display:none">initializeImage</span><span data-if="python" style="display:none">initialize_image</span></code></i></a> is used as an initial prediction for the
background image. For a good prediction an image of the
observed scene without moving objects should be passed in
<a href="#InitializeImage"><i><code><span data-if="hdevelop" style="display:inline">InitializeImage</span><span data-if="c" style="display:none">InitializeImage</span><span data-if="cpp" style="display:none">InitializeImage</span><span data-if="com" style="display:none">InitializeImage</span><span data-if="dotnet" style="display:none">initializeImage</span><span data-if="python" style="display:none">initialize_image</span></code></i></a>. That way the foreground adaptation rate
can be held low. If there is no empty scene image available, a
homogeneous gray image can be used instead. In that case the
adaptation rate for the foreground image must be raised, because
initially most of the image will be detected as foreground. The
initialization image must to be of type <code>byte</code> or
<code>real</code>.
Because of processing single-channel images, data sets must be created for
every channel. Size and region of <a href="#InitializeImage"><i><code><span data-if="hdevelop" style="display:inline">InitializeImage</span><span data-if="c" style="display:none">InitializeImage</span><span data-if="cpp" style="display:none">InitializeImage</span><span data-if="com" style="display:none">InitializeImage</span><span data-if="dotnet" style="display:none">initializeImage</span><span data-if="python" style="display:none">initialize_image</span></code></i></a>
determines size and region for all background estimations
(<a href="run_bg_esti.html"><code><span data-if="hdevelop" style="display:inline">run_bg_esti</span><span data-if="c" style="display:none">run_bg_esti</span><span data-if="cpp" style="display:none">RunBgEsti</span><span data-if="com" style="display:none">RunBgEsti</span><span data-if="dotnet" style="display:none">RunBgEsti</span><span data-if="python" style="display:none">run_bg_esti</span></code></a>) that are performed with this data set.
</p>
<p><a href="#Syspar1"><i><code><span data-if="hdevelop" style="display:inline">Syspar1</span><span data-if="c" style="display:none">Syspar1</span><span data-if="cpp" style="display:none">Syspar1</span><span data-if="com" style="display:none">Syspar1</span><span data-if="dotnet" style="display:none">syspar1</span><span data-if="python" style="display:none">syspar_1</span></code></i></a> and <a href="#Syspar2"><i><code><span data-if="hdevelop" style="display:inline">Syspar2</span><span data-if="c" style="display:none">Syspar2</span><span data-if="cpp" style="display:none">Syspar2</span><span data-if="com" style="display:none">Syspar2</span><span data-if="dotnet" style="display:none">syspar2</span><span data-if="python" style="display:none">syspar_2</span></code></i></a> are the parameters of the
Kalman system matrix. The system matrix describes the system of the
gray value changes according to Kalman filter theory. The background
estimator implements a different system for each pixel.
</p>
<p><a href="#GainMode"><i><code><span data-if="hdevelop" style="display:inline">GainMode</span><span data-if="c" style="display:none">GainMode</span><span data-if="cpp" style="display:none">GainMode</span><span data-if="com" style="display:none">GainMode</span><span data-if="dotnet" style="display:none">gainMode</span><span data-if="python" style="display:none">gain_mode</span></code></i></a> defines whether a fixed Kalman gain should be
used for the estimation or whether the gain should adapt itself
depending on the difference between estimation and actual value. If
<a href="#GainMode"><i><code><span data-if="hdevelop" style="display:inline">GainMode</span><span data-if="c" style="display:none">GainMode</span><span data-if="cpp" style="display:none">GainMode</span><span data-if="com" style="display:none">GainMode</span><span data-if="dotnet" style="display:none">gainMode</span><span data-if="python" style="display:none">gain_mode</span></code></i></a> is set to <i><span data-if="hdevelop" style="display:inline">'fixed'</span><span data-if="c" style="display:none">"fixed"</span><span data-if="cpp" style="display:none">"fixed"</span><span data-if="com" style="display:none">"fixed"</span><span data-if="dotnet" style="display:none">"fixed"</span><span data-if="python" style="display:none">"fixed"</span></i>, then
<a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> is used as Kalman gain for pixels predicted as
foreground and <a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a> as gain for pixels predicted as
background. <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> should be smaller than
<a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a>, because adaptation of the foreground should be
slower than adaptation of the background. Both <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> and
<a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a> should be smaller than <i>1.0</i>.
</p>
<p>If <a href="#GainMode"><i><code><span data-if="hdevelop" style="display:inline">GainMode</span><span data-if="c" style="display:none">GainMode</span><span data-if="cpp" style="display:none">GainMode</span><span data-if="com" style="display:none">GainMode</span><span data-if="dotnet" style="display:none">gainMode</span><span data-if="python" style="display:none">gain_mode</span></code></i></a> is set to <i><span data-if="hdevelop" style="display:inline">'frame'</span><span data-if="c" style="display:none">"frame"</span><span data-if="cpp" style="display:none">"frame"</span><span data-if="com" style="display:none">"frame"</span><span data-if="dotnet" style="display:none">"frame"</span><span data-if="python" style="display:none">"frame"</span></i>, then tables for
foreground and background estimation are computed containing
Kalman gains for all the 256 possible gray value
changes. <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> and <a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a> then denote the
number of frames necessary to adapt the difference between estimated
value and actual value. So with a fixed time for adaptation (i.e. number
of frames) the needed Kalman gain grows with the gray value
difference. <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> should therefore be larger than
<a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a>. Different gains for different gray value
differences are useful if the background estimator is used for
generating an 'empty' scene assuming that there are always moving
objects in the observed area. In that case the adaptation time for
foreground adaptation (<a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a>) must not be too
big. <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> and <a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a> should be bigger than
<i>1.0</i>.
</p>
<p><a href="#AdaptMode"><i><code><span data-if="hdevelop" style="display:inline">AdaptMode</span><span data-if="c" style="display:none">AdaptMode</span><span data-if="cpp" style="display:none">AdaptMode</span><span data-if="com" style="display:none">AdaptMode</span><span data-if="dotnet" style="display:none">adaptMode</span><span data-if="python" style="display:none">adapt_mode</span></code></i></a> denotes, whether the foreground/background
decision threshold applied to the gray value difference between
estimation and actual value is fixed or whether it adapts itself
depending on the gray value deviation of the background pixels.
</p>
<p>If <a href="#AdaptMode"><i><code><span data-if="hdevelop" style="display:inline">AdaptMode</span><span data-if="c" style="display:none">AdaptMode</span><span data-if="cpp" style="display:none">AdaptMode</span><span data-if="com" style="display:none">AdaptMode</span><span data-if="dotnet" style="display:none">adaptMode</span><span data-if="python" style="display:none">adapt_mode</span></code></i></a> is set to <i><span data-if="hdevelop" style="display:inline">'off'</span><span data-if="c" style="display:none">"off"</span><span data-if="cpp" style="display:none">"off"</span><span data-if="com" style="display:none">"off"</span><span data-if="dotnet" style="display:none">"off"</span><span data-if="python" style="display:none">"off"</span></i>, the parameter
<a href="#MinDiff"><i><code><span data-if="hdevelop" style="display:inline">MinDiff</span><span data-if="c" style="display:none">MinDiff</span><span data-if="cpp" style="display:none">MinDiff</span><span data-if="com" style="display:none">MinDiff</span><span data-if="dotnet" style="display:none">minDiff</span><span data-if="python" style="display:none">min_diff</span></code></i></a> denotes a fixed threshold. The parameters
<a href="#StatNum"><i><code><span data-if="hdevelop" style="display:inline">StatNum</span><span data-if="c" style="display:none">StatNum</span><span data-if="cpp" style="display:none">StatNum</span><span data-if="com" style="display:none">StatNum</span><span data-if="dotnet" style="display:none">statNum</span><span data-if="python" style="display:none">stat_num</span></code></i></a>, <a href="#ConfidenceC"><i><code><span data-if="hdevelop" style="display:inline">ConfidenceC</span><span data-if="c" style="display:none">ConfidenceC</span><span data-if="cpp" style="display:none">ConfidenceC</span><span data-if="com" style="display:none">ConfidenceC</span><span data-if="dotnet" style="display:none">confidenceC</span><span data-if="python" style="display:none">confidence_c</span></code></i></a> and <a href="#TimeC"><i><code><span data-if="hdevelop" style="display:inline">TimeC</span><span data-if="c" style="display:none">TimeC</span><span data-if="cpp" style="display:none">TimeC</span><span data-if="com" style="display:none">TimeC</span><span data-if="dotnet" style="display:none">timeC</span><span data-if="python" style="display:none">time_c</span></code></i></a> are
meaningless in this case.
</p>
<p>If <a href="#AdaptMode"><i><code><span data-if="hdevelop" style="display:inline">AdaptMode</span><span data-if="c" style="display:none">AdaptMode</span><span data-if="cpp" style="display:none">AdaptMode</span><span data-if="com" style="display:none">AdaptMode</span><span data-if="dotnet" style="display:none">adaptMode</span><span data-if="python" style="display:none">adapt_mode</span></code></i></a> is set to <i><span data-if="hdevelop" style="display:inline">'on'</span><span data-if="c" style="display:none">"on"</span><span data-if="cpp" style="display:none">"on"</span><span data-if="com" style="display:none">"on"</span><span data-if="dotnet" style="display:none">"on"</span><span data-if="python" style="display:none">"on"</span></i>, then
<a href="#MinDiff"><i><code><span data-if="hdevelop" style="display:inline">MinDiff</span><span data-if="c" style="display:none">MinDiff</span><span data-if="cpp" style="display:none">MinDiff</span><span data-if="com" style="display:none">MinDiff</span><span data-if="dotnet" style="display:none">minDiff</span><span data-if="python" style="display:none">min_diff</span></code></i></a> is interpreted as a base threshold. For each
pixel an offset is added to this threshold depending on the
statistical evaluation of the pixel value over
time. <a href="#StatNum"><i><code><span data-if="hdevelop" style="display:inline">StatNum</span><span data-if="c" style="display:none">StatNum</span><span data-if="cpp" style="display:none">StatNum</span><span data-if="com" style="display:none">StatNum</span><span data-if="dotnet" style="display:none">statNum</span><span data-if="python" style="display:none">stat_num</span></code></i></a> holds the number of data sets (past frames)
that are used for computing the gray value variance
(FIR-Filter). <a href="#ConfidenceC"><i><code><span data-if="hdevelop" style="display:inline">ConfidenceC</span><span data-if="c" style="display:none">ConfidenceC</span><span data-if="cpp" style="display:none">ConfidenceC</span><span data-if="com" style="display:none">ConfidenceC</span><span data-if="dotnet" style="display:none">confidenceC</span><span data-if="python" style="display:none">confidence_c</span></code></i></a> is used to determine the
confidence interval.
</p>
<p>The confidence interval determines the values of the background
statistics if background pixels are hidden by a foreground object
and thus are detected as foreground. According to the student
t-distribution the confidence constant is <i>4.30</i>
(<i>3.25</i>, <i>2.82</i>, <i>2.26</i>) for a confidence
interval of <i>99,8%</i> (<i>99,0%</i>, <i>98,0%</i>,
<i>95,0%</i>). <a href="#TimeC"><i><code><span data-if="hdevelop" style="display:inline">TimeC</span><span data-if="c" style="display:none">TimeC</span><span data-if="cpp" style="display:none">TimeC</span><span data-if="com" style="display:none">TimeC</span><span data-if="dotnet" style="display:none">timeC</span><span data-if="python" style="display:none">time_c</span></code></i></a> holds a time constant for the
exp-function that raises the threshold in case of a foreground
estimation of the pixel. That means, the threshold is raised in
regions where movement is detected in the foreground. That way larger
changes in illumination are tolerated if the background becomes
visible again. The main reason for increasing this tolerance is the
impossibility for a prediction of illumination changes while the
background is hidden. Therefore no adaptation of the estimated
background image is possible.</p>
<h2 id="sec_attention">注意</h2>
<p>If <a href="#GainMode"><i><code><span data-if="hdevelop" style="display:inline">GainMode</span><span data-if="c" style="display:none">GainMode</span><span data-if="cpp" style="display:none">GainMode</span><span data-if="com" style="display:none">GainMode</span><span data-if="dotnet" style="display:none">gainMode</span><span data-if="python" style="display:none">gain_mode</span></code></i></a> was set to <i><span data-if="hdevelop" style="display:inline">'frame'</span><span data-if="c" style="display:none">"frame"</span><span data-if="cpp" style="display:none">"frame"</span><span data-if="com" style="display:none">"frame"</span><span data-if="dotnet" style="display:none">"frame"</span><span data-if="python" style="display:none">"frame"</span></i>, the run-time
can be extremely long for large values of <a href="#Gain1"><i><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></i></a> or
<a href="#Gain2"><i><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></i></a>, because the values for the gains' table are
determined by a simple binary search.</p>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<p>This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.</p>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="InitializeImage" class="parname"><b><code><span data-if="hdevelop" style="display:inline">InitializeImage</span><span data-if="c" style="display:none">InitializeImage</span><span data-if="cpp" style="display:none">InitializeImage</span><span data-if="com" style="display:none">InitializeImage</span><span data-if="dotnet" style="display:none">initializeImage</span><span data-if="python" style="display:none">initialize_image</span></code></b> (input_object)  </span><span>singlechannelimage <code>→</code> <span data-if="hdevelop" style="display:inline">object</span><span data-if="dotnet" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="python" style="display:none">HObject</span><span data-if="cpp" style="display:none"><a href="HImage.html">HImage</a></span><span data-if="c" style="display:none">Hobject</span> (byte / real)</span>
</div>
<p class="pardesc">initialization image.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Syspar1" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Syspar1</span><span data-if="c" style="display:none">Syspar1</span><span data-if="cpp" style="display:none">Syspar1</span><span data-if="com" style="display:none">Syspar1</span><span data-if="dotnet" style="display:none">syspar1</span><span data-if="python" style="display:none">syspar_1</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">1. system matrix parameter.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0.7</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>0.65, 0.7, 0.75</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>0.05
          ≤
        
    <span data-if="hdevelop" style="display:inline">Syspar1</span>
    <span data-if="c" style="display:none">Syspar1</span>
    <span data-if="cpp" style="display:none">Syspar1</span>
    <span data-if="com" style="display:none">Syspar1</span>
    <span data-if="dotnet" style="display:none">syspar1</span>
    <span data-if="python" style="display:none">syspar_1</span>
    
          ≤
          1.0</code></p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>0.05</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Syspar2" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Syspar2</span><span data-if="c" style="display:none">Syspar2</span><span data-if="cpp" style="display:none">Syspar2</span><span data-if="com" style="display:none">Syspar2</span><span data-if="dotnet" style="display:none">syspar2</span><span data-if="python" style="display:none">syspar_2</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">2. system matrix parameter.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0.7</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>0.65, 0.7, 0.75</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>0.05
          ≤
        
    <span data-if="hdevelop" style="display:inline">Syspar2</span>
    <span data-if="c" style="display:none">Syspar2</span>
    <span data-if="cpp" style="display:none">Syspar2</span>
    <span data-if="com" style="display:none">Syspar2</span>
    <span data-if="dotnet" style="display:none">syspar2</span>
    <span data-if="python" style="display:none">syspar_2</span>
    
          ≤
          1.0</code></p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>0.05</p>
</div>
  <div class="par">
<div class="parhead">
<span id="GainMode" class="parname"><b><code><span data-if="hdevelop" style="display:inline">GainMode</span><span data-if="c" style="display:none">GainMode</span><span data-if="cpp" style="display:none">GainMode</span><span data-if="com" style="display:none">GainMode</span><span data-if="dotnet" style="display:none">gainMode</span><span data-if="python" style="display:none">gain_mode</span></code></b> (input_control)  </span><span>string <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">str</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string)</span><span data-if="dotnet" style="display:none"> (<i>string</i>)</span><span data-if="cpp" style="display:none"> (<i>HString</i>)</span><span data-if="c" style="display:none"> (<i>char*</i>)</span></span>
</div>
<p class="pardesc">Gain type.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'fixed'</span>
    <span data-if="c" style="display:none">"fixed"</span>
    <span data-if="cpp" style="display:none">"fixed"</span>
    <span data-if="com" style="display:none">"fixed"</span>
    <span data-if="dotnet" style="display:none">"fixed"</span>
    <span data-if="python" style="display:none">"fixed"</span>
</p>
<p class="pardesc"><span class="parcat">List of values:
      </span><span data-if="hdevelop" style="display:inline">'fixed'</span><span data-if="c" style="display:none">"fixed"</span><span data-if="cpp" style="display:none">"fixed"</span><span data-if="com" style="display:none">"fixed"</span><span data-if="dotnet" style="display:none">"fixed"</span><span data-if="python" style="display:none">"fixed"</span>, <span data-if="hdevelop" style="display:inline">'frame'</span><span data-if="c" style="display:none">"frame"</span><span data-if="cpp" style="display:none">"frame"</span><span data-if="com" style="display:none">"frame"</span><span data-if="dotnet" style="display:none">"frame"</span><span data-if="python" style="display:none">"frame"</span></p>
</div>
  <div class="par">
<div class="parhead">
<span id="Gain1" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Gain1</span><span data-if="c" style="display:none">Gain1</span><span data-if="cpp" style="display:none">Gain1</span><span data-if="com" style="display:none">Gain1</span><span data-if="dotnet" style="display:none">gain1</span><span data-if="python" style="display:none">gain_1</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Kalman gain / foreground adaptation time.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0.002</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>10.0, 20.0, 50.0, 0.1, 0.05, 0.01, 0.005, 0.001</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0.0 &lt;= Gain1</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="Gain2" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Gain2</span><span data-if="c" style="display:none">Gain2</span><span data-if="cpp" style="display:none">Gain2</span><span data-if="com" style="display:none">Gain2</span><span data-if="dotnet" style="display:none">gain2</span><span data-if="python" style="display:none">gain_2</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Kalman gain / background adaptation time.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>0.02</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>2.0, 4.0, 8.0, 0.5, 0.1, 0.05, 0.01</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0.0 &lt;= Gain2</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="AdaptMode" class="parname"><b><code><span data-if="hdevelop" style="display:inline">AdaptMode</span><span data-if="c" style="display:none">AdaptMode</span><span data-if="cpp" style="display:none">AdaptMode</span><span data-if="com" style="display:none">AdaptMode</span><span data-if="dotnet" style="display:none">adaptMode</span><span data-if="python" style="display:none">adapt_mode</span></code></b> (input_control)  </span><span>string <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">str</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string)</span><span data-if="dotnet" style="display:none"> (<i>string</i>)</span><span data-if="cpp" style="display:none"> (<i>HString</i>)</span><span data-if="c" style="display:none"> (<i>char*</i>)</span></span>
</div>
<p class="pardesc">Threshold adaptation.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'on'</span>
    <span data-if="c" style="display:none">"on"</span>
    <span data-if="cpp" style="display:none">"on"</span>
    <span data-if="com" style="display:none">"on"</span>
    <span data-if="dotnet" style="display:none">"on"</span>
    <span data-if="python" style="display:none">"on"</span>
</p>
<p class="pardesc"><span class="parcat">List of values:
      </span><span data-if="hdevelop" style="display:inline">'off'</span><span data-if="c" style="display:none">"off"</span><span data-if="cpp" style="display:none">"off"</span><span data-if="com" style="display:none">"off"</span><span data-if="dotnet" style="display:none">"off"</span><span data-if="python" style="display:none">"off"</span>, <span data-if="hdevelop" style="display:inline">'on'</span><span data-if="c" style="display:none">"on"</span><span data-if="cpp" style="display:none">"on"</span><span data-if="com" style="display:none">"on"</span><span data-if="dotnet" style="display:none">"on"</span><span data-if="python" style="display:none">"on"</span></p>
</div>
  <div class="par">
<div class="parhead">
<span id="MinDiff" class="parname"><b><code><span data-if="hdevelop" style="display:inline">MinDiff</span><span data-if="c" style="display:none">MinDiff</span><span data-if="cpp" style="display:none">MinDiff</span><span data-if="com" style="display:none">MinDiff</span><span data-if="dotnet" style="display:none">minDiff</span><span data-if="python" style="display:none">min_diff</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Foreground/background threshold.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>7.0</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>3.0, 5.0, 7.0, 9.0, 11.0</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>0.2</p>
</div>
  <div class="par">
<div class="parhead">
<span id="StatNum" class="parname"><b><code><span data-if="hdevelop" style="display:inline">StatNum</span><span data-if="c" style="display:none">StatNum</span><span data-if="cpp" style="display:none">StatNum</span><span data-if="com" style="display:none">StatNum</span><span data-if="dotnet" style="display:none">statNum</span><span data-if="python" style="display:none">stat_num</span></code></b> (input_control)  </span><span>integer <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">int</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (integer)</span><span data-if="dotnet" style="display:none"> (<i>int</i> / </span><span data-if="dotnet" style="display:none">long)</span><span data-if="cpp" style="display:none"> (<i>Hlong</i>)</span><span data-if="c" style="display:none"> (<i>Hlong</i>)</span></span>
</div>
<p class="pardesc">Number of statistic data sets.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>10</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>5, 10, 20, 30</p>
<p class="pardesc"><span class="parcat">Value range:
      </span><code>1
          ≤
        
    <span data-if="hdevelop" style="display:inline">StatNum</span>
    <span data-if="c" style="display:none">StatNum</span>
    <span data-if="cpp" style="display:none">StatNum</span>
    <span data-if="com" style="display:none">StatNum</span>
    <span data-if="dotnet" style="display:none">statNum</span>
    <span data-if="python" style="display:none">stat_num</span>
    </code></p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>5</p>
</div>
  <div class="par">
<div class="parhead">
<span id="ConfidenceC" class="parname"><b><code><span data-if="hdevelop" style="display:inline">ConfidenceC</span><span data-if="c" style="display:none">ConfidenceC</span><span data-if="cpp" style="display:none">ConfidenceC</span><span data-if="com" style="display:none">ConfidenceC</span><span data-if="dotnet" style="display:none">confidenceC</span><span data-if="python" style="display:none">confidence_c</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Confidence constant.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>3.25</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>4.30, 3.25, 2.82, 2.62</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>0.01</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0.0 &lt; ConfidenceC</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="TimeC" class="parname"><b><code><span data-if="hdevelop" style="display:inline">TimeC</span><span data-if="c" style="display:none">TimeC</span><span data-if="cpp" style="display:none">TimeC</span><span data-if="com" style="display:none">TimeC</span><span data-if="dotnet" style="display:none">timeC</span><span data-if="python" style="display:none">time_c</span></code></b> (input_control)  </span><span>real <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">float</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (real)</span><span data-if="dotnet" style="display:none"> (<i>double</i>)</span><span data-if="cpp" style="display:none"> (<i>double</i>)</span><span data-if="c" style="display:none"> (<i>double</i>)</span></span>
</div>
<p class="pardesc">Constant for decay time.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>15.0</p>
<p class="pardesc"><span class="parcat">Suggested values:
      </span>10.0, 15.0, 20.0</p>
<p class="pardesc"><span class="parcat">Recommended increment:
      </span>5.0</p>
<p class="pardesc"><span class="parcat">Restriction:
      </span><code>0.0 &lt; TimeC</code></p>
</div>
  <div class="par">
<div class="parhead">
<span id="BgEstiHandle" class="parname"><b><code><span data-if="hdevelop" style="display:inline">BgEstiHandle</span><span data-if="c" style="display:none">BgEstiHandle</span><span data-if="cpp" style="display:none">BgEstiHandle</span><span data-if="com" style="display:none">BgEstiHandle</span><span data-if="dotnet" style="display:none">bgEstiHandle</span><span data-if="python" style="display:none">bg_esti_handle</span></code></b> (output_control)  </span><span>bg_estimation <code>→</code> <span data-if="dotnet" style="display:none"><a href="HBgEsti.html">HBgEsti</a>, </span><span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">HHandle</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (handle)</span><span data-if="dotnet" style="display:none"> (<i>IntPtr</i>)</span><span data-if="cpp" style="display:none"> (<i>HHandle</i>)</span><span data-if="c" style="display:none"> (<i>handle</i>)</span></span>
</div>
<p class="pardesc">ID of the BgEsti data set.</p>
</div>
<h2 id="sec_example_all">例程 (HDevelop)</h2>
<pre class="example">
* read Init-Image:
read_image (InitImage, 'xing/init')
* initialize 1. BgEsti-Dataset with
* fixed gains and threshold adaption:
create_bg_esti(InitImage,0.7,0.7,'fixed',0.002,0.02, \
               'on',7.0,10,3.25,15.0,BgEstiHandle1)
* initialize 2. BgEsti-Dataset with
* frame orientated gains and fixed threshold
create_bg_esti(InitImage,0.7,0.7,'frame',30.0,4.0, \
               'off',9.0,10,3.25,15.0,BgEstiHandle2)
</pre>
<h2 id="sec_result">结果</h2>
<p><code><span data-if="hdevelop" style="display:inline">create_bg_esti</span><span data-if="c" style="display:none">create_bg_esti</span><span data-if="cpp" style="display:none">CreateBgEsti</span><span data-if="com" style="display:none">CreateBgEsti</span><span data-if="dotnet" style="display:none">CreateBgEsti</span><span data-if="python" style="display:none">create_bg_esti</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
     if all parameters are
correct.</p>
<h2 id="sec_successors">可能的后置算子</h2>
<p>
<code><a href="run_bg_esti.html"><span data-if="hdevelop" style="display:inline">run_bg_esti</span><span data-if="c" style="display:none">run_bg_esti</span><span data-if="cpp" style="display:none">RunBgEsti</span><span data-if="com" style="display:none">RunBgEsti</span><span data-if="dotnet" style="display:none">RunBgEsti</span><span data-if="python" style="display:none">run_bg_esti</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="set_bg_esti_params.html"><span data-if="hdevelop" style="display:inline">set_bg_esti_params</span><span data-if="c" style="display:none">set_bg_esti_params</span><span data-if="cpp" style="display:none">SetBgEstiParams</span><span data-if="com" style="display:none">SetBgEstiParams</span><span data-if="dotnet" style="display:none">SetBgEstiParams</span><span data-if="python" style="display:none">set_bg_esti_params</span></a></code>, 
<code><a href="close_bg_esti.html"><span data-if="hdevelop" style="display:inline">close_bg_esti</span><span data-if="c" style="display:none">close_bg_esti</span><span data-if="cpp" style="display:none">CloseBgEsti</span><span data-if="com" style="display:none">CloseBgEsti</span><span data-if="dotnet" style="display:none">CloseBgEsti</span><span data-if="python" style="display:none">close_bg_esti</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
